package com.cskaoyan._09static._05usecase;

import java.util.Arrays;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/6 15:12
 **/

public class Demo3 {
    public static void main(String[] args) {
        Student s1 = new Student("zs");
        Student s2 = new Student("ls");
        Student s3 = new Student("ww");
        Student[] students = {s1, s2, s3};

        // 使用工具类
        System.out.println(Arrays.toString(students));

        int[] arr = {1, 3, 5, 9, 7};
        System.out.println(Arrays.toString(arr));

        //数组排序
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));

        double result = Math.pow(10, 2);
        System.out.println("result = " + result);

        int sum = CalculateUtils.sum(10, 20);
        System.out.println(sum);
    }
}


